import request from '@/utils/request'

// 查询报价一览列表
export function listZcQuotationOverview(query) {
  return request({
    url: '/sales/ZcQuotationOverview/list',
    method: 'get',
    params: query
  })
}

// 查询报价一览详细
export function getZcQuotationOverview(id) {
  return request({
    url: '/sales/ZcQuotationOverview/' + id,
    method: 'get'
  })
}

// 新增报价一览
export function addZcQuotationOverview(data) {
  return request({
    url: '/sales/ZcQuotationOverview',
    method: 'post',
    data: data
  })
}

// 确认报价
export function confirmZcQuotationOverview(data) {
  return request({
    url: '/sales/ZcQuotationOverview/confirm',
    method: 'post',
    data: data
  })
}

// 修改报价一览
export function updateZcQuotationOverview(data) {
  return request({
    url: '/sales/ZcQuotationOverview',
    method: 'put',
    data: data
  })
}

// 删除报价一览
export function delZcQuotationOverview(id) {
  return request({
    url: '/sales/ZcQuotationOverview/' + id,
    method: 'delete'
  })
}
